package com.crm.dao.mapper.customMapper.contractReviewManager;

import com.crm.model.qo.contractReviewManager.ContractReviewFormQO;
import com.crm.model.vo.contractReviewManager.ContractCouponVO;
import com.crm.model.vo.contractReviewManager.ContractReviewFormVO;
import com.crm.model.vo.contractReviewManager.ContractReviewVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yincuimei
 * @Date 2021/3/30 15:33
 * (客服部)审核管理--合同审核
 */
public interface ContractReviewCustomMapper {

    /**
     * 审核管理--合同审核列表
     * @param contractReviewFormQO ---合同审核列表查询参数
     * @param dateUnit             ---全部、今天、本周、本月查询条件
     * @param orderStr            ---排序
     * @author yincuimei
     * @return
     */
    List<ContractReviewFormVO> selectContractReviewFormVOList(@Param("contractReviewFormQO")ContractReviewFormQO contractReviewFormQO,@Param("dateUnit")Integer dateUnit, @Param("sortOrder")String orderStr);

    /**
     * 合同详情--审核详情(最新审核记录)
     * @param contractId ---合同ID
     * @author yincuimei
     * @return
     */
    ContractReviewVO selectContractReviewFinally(@Param("contractId")String contractId);

    /***
     * @Description: 查询客户下的优惠券
     * @Param: customerId 客户id
     * @Author: baijian
     * @Date: 2021/11/15 10:54
     */
    List<ContractCouponVO> contractCouponList(@Param("customerId") String customerId);
}
